package modifier.character;

import character.MyCharacter;
import modifier.TickingModifier;

public abstract class CharacterModifier extends TickingModifier {
    protected MyCharacter affectedCharacter;
    
    @Deprecated
    protected CharacterModifier() {}
    
    public CharacterModifier(MyCharacter owner, int duration) {
        super(owner, duration);
    }
    
    public abstract CharacterModifier cloneForCharacter(MyCharacter character);
    
    protected void cloneMeForCharacter(CharacterModifier characterModifier, MyCharacter character) {
        super.cloneMe(characterModifier);
        characterModifier.affectedCharacter = character;
    }
}
